Optimal. Leaf size=133 \[ \frac {a^2 x^4}{4}+\frac {i a b \text {Li}_2\left (-i e^{i \left (d x^2+c\right )}\right )}{d^2}-\frac {i a b \text {Li}_2\left (i e^{i \left (d x^2+c\right )}\right )}{d^2}-\frac {2 i a b x^2 \tan ^{-1}\left (e^{i \left (c+d x^2\right )}\right )}{d}+\frac {b^2 \log \left (\cos \left (c+d x^2\right )\right )}{2 d^2}+\frac {b^2 x^2 \tan \left (c+d x^2\right )}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.16, antiderivative size = 133, normalized size of antiderivative = 1.00, number of steps used = 10, number of rules used = 7, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.389, Rules used = {4204, 4190, 4181, 2279, 2391, 4184, 3475} \[ \frac {i a b \text {PolyLog}\left (2,-i e^{i \left (c+d x^2\right )}\right )}{d^2}-\frac {i a b \text {PolyLog}\left (2,i e^{i \left (c+d x^2\right )}\right )}{d^2}+\frac {a^2 x^4}{4}-\frac {2 i a b x^2 \tan ^{-1}\left (e^{i \left (c+d x^2\right )}\right )}{d}+\frac {b^2 \log \left (\cos \left (c+d x^2\right )\right )}{2 d^2}+\frac {b^2 x^2 \tan \left (c+d x^2\right )}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2279
Rule 2391
Rule 3475
Rule 4181
Rule 4184
Rule 4190
Rule 4204
Rubi steps
\begin {align*} \int x^3 \left (a+b \sec \left (c+d x^2\right )\right )^2 \, dx &=\frac {1}{2} \operatorname {Subst}\left (\int x (a+b \sec (c+d x))^2 \, dx,x,x^2\right )\\ &=\frac {1}{2} \operatorname {Subst}\left (\int \left (a^2 x+2 a b x \sec (c+d x)+b^2 x \sec ^2(c+d x)\right ) \, dx,x,x^2\right )\\ &=\frac {a^2 x^4}{4}+(a b) \operatorname {Subst}\left (\int x \sec (c+d x) \, dx,x,x^2\right )+\frac {1}{2} b^2 \operatorname {Subst}\left (\int x \sec ^2(c+d x) \, dx,x,x^2\right )\\ &=\frac {a^2 x^4}{4}-\frac {2 i a b x^2 \tan ^{-1}\left (e^{i \left (c+d x^2\right )}\right )}{d}+\frac {b^2 x^2 \tan \left (c+d x^2\right )}{2 d}-\frac {(a b) \operatorname {Subst}\left (\int \log \left (1-i e^{i (c+d x)}\right ) \, dx,x,x^2\right )}{d}+\frac {(a b) \operatorname {Subst}\left (\int \log \left (1+i e^{i (c+d x)}\right ) \, dx,x,x^2\right )}{d}-\frac {b^2 \operatorname {Subst}\left (\int \tan (c+d x) \, dx,x,x^2\right )}{2 d}\\ &=\frac {a^2 x^4}{4}-\frac {2 i a b x^2 \tan ^{-1}\left (e^{i \left (c+d x^2\right )}\right )}{d}+\frac {b^2 \log \left (\cos \left (c+d x^2\right )\right )}{2 d^2}+\frac {b^2 x^2 \tan \left (c+d x^2\right )}{2 d}+\frac {(i a b) \operatorname {Subst}\left (\int \frac {\log (1-i x)}{x} \, dx,x,e^{i \left (c+d x^2\right )}\right )}{d^2}-\frac {(i a b) \operatorname {Subst}\left (\int \frac {\log (1+i x)}{x} \, dx,x,e^{i \left (c+d x^2\right )}\right )}{d^2}\\ &=\frac {a^2 x^4}{4}-\frac {2 i a b x^2 \tan ^{-1}\left (e^{i \left (c+d x^2\right )}\right )}{d}+\frac {b^2 \log \left (\cos \left (c+d x^2\right )\right )}{2 d^2}+\frac {i a b \text {Li}_2\left (-i e^{i \left (c+d x^2\right )}\right )}{d^2}-\frac {i a b \text {Li}_2\left (i e^{i \left (c+d x^2\right )}\right )}{d^2}+\frac {b^2 x^2 \tan \left (c+d x^2\right )}{2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.47, size = 123, normalized size = 0.92 \[ \frac {a^2 d^2 x^4+4 i a b \text {Li}_2\left (-i e^{i \left (d x^2+c\right )}\right )-4 i a b \text {Li}_2\left (i e^{i \left (d x^2+c\right )}\right )-8 i a b d x^2 \tan ^{-1}\left (e^{i \left (c+d x^2\right )}\right )+2 b^2 d x^2 \tan \left (c+d x^2\right )+2 b^2 \log \left (\cos \left (c+d x^2\right )\right )}{4 d^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.87, size = 525, normalized size = 3.95 \[ \frac {a^{2} d^{2} x^{4} \cos \left (d x^{2} + c\right ) + 2 \, b^{2} d x^{2} \sin \left (d x^{2} + c\right ) - 2 i \, a b \cos \left (d x^{2} + c\right ) {\rm Li}_2\left (i \, \cos \left (d x^{2} + c\right ) + \sin \left (d x^{2} + c\right )\right ) - 2 i \, a b \cos \left (d x^{2} + c\right ) {\rm Li}_2\left (i \, \cos \left (d x^{2} + c\right ) - \sin \left (d x^{2} + c\right )\right ) + 2 i \, a b \cos \left (d x^{2} + c\right ) {\rm Li}_2\left (-i \, \cos \left (d x^{2} + c\right ) + \sin \left (d x^{2} + c\right )\right ) + 2 i \, a b \cos \left (d x^{2} + c\right ) {\rm Li}_2\left (-i \, \cos \left (d x^{2} + c\right ) - \sin \left (d x^{2} + c\right )\right ) - {\left (2 \, a b c - b^{2}\right )} \cos \left (d x^{2} + c\right ) \log \left (\cos \left (d x^{2} + c\right ) + i \, \sin \left (d x^{2} + c\right ) + i\right ) + {\left (2 \, a b c + b^{2}\right )} \cos \left (d x^{2} + c\right ) \log \left (\cos \left (d x^{2} + c\right ) - i \, \sin \left (d x^{2} + c\right ) + i\right ) + 2 \, {\left (a b d x^{2} + a b c\right )} \cos \left (d x^{2} + c\right ) \log \left (i \, \cos \left (d x^{2} + c\right ) + \sin \left (d x^{2} + c\right ) + 1\right ) - 2 \, {\left (a b d x^{2} + a b c\right )} \cos \left (d x^{2} + c\right ) \log \left (i \, \cos \left (d x^{2} + c\right ) - \sin \left (d x^{2} + c\right ) + 1\right ) + 2 \, {\left (a b d x^{2} + a b c\right )} \cos \left (d x^{2} + c\right ) \log \left (-i \, \cos \left (d x^{2} + c\right ) + \sin \left (d x^{2} + c\right ) + 1\right ) - 2 \, {\left (a b d x^{2} + a b c\right )} \cos \left (d x^{2} + c\right ) \log \left (-i \, \cos \left (d x^{2} + c\right ) - \sin \left (d x^{2} + c\right ) + 1\right ) - {\left (2 \, a b c - b^{2}\right )} \cos \left (d x^{2} + c\right ) \log \left (-\cos \left (d x^{2} + c\right ) + i \, \sin \left (d x^{2} + c\right ) + i\right ) + {\left (2 \, a b c + b^{2}\right )} \cos \left (d x^{2} + c\right ) \log \left (-\cos \left (d x^{2} + c\right ) - i \, \sin \left (d x^{2} + c\right ) + i\right )}{4 \, d^{2} \cos \left (d x^{2} + c\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b \sec \left (d x^{2} + c\right ) + a\right )}^{2} x^{3}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 1.29, size = 0, normalized size = 0.00 \[ \int x^{3} \left (a +b \sec \left (d \,x^{2}+c \right )\right )^{2}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int x^3\,{\left (a+\frac {b}{\cos \left (d\,x^2+c\right )}\right )}^2 \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int x^{3} \left (a + b \sec {\left (c + d x^{2} \right )}\right )^{2}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________